package com.mars.module.admin.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.mars.common.request.PageRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 商品请求对象 sys_product
 *
 * @author mars
 * @date 2024-01-24
 */
@Data
@ApiModel(value = "商品对象")
@EqualsAndHashCode(callSuper = true)
public class SysProductRequest extends PageRequest{



    /**
     * 主键ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "id")
    private Long id;

    /**
     * 商品名称
     */
    @ApiModelProperty(value = "商品名称")
    private String name;

    /**
     * 分类ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "分类ID")
    private String classId;

    /**
     * 店铺ID
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    @ApiModelProperty(value = "店铺ID")
    private Long shopId;

    /**
     * 图片
     */
    @ApiModelProperty(value = "图片")
    private String picture;

    /**
     * 生产日期
     */
    @ApiModelProperty(value = "生产日期")
    private LocalDate manufactureDate;

    /**
     * 库存数量
     */
    @ApiModelProperty(value = "库存数量")
    private Integer inventory;

    /**
     * 保质期
     */
    @ApiModelProperty(value = "保质期")
    private String shelfLife;

    /**
     * 商品单价（元）
     */
    @ApiModelProperty(value = "商品单价（元）")
    private BigDecimal price;

    /**
     * 商品状态
     */
    @ApiModelProperty(value = "商品状态")
    private String status;
}
